import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import axios from 'axios'
import 'element-plus/dist/index.css'

const app = createApp(App)
axios.defaults.baseURL = 'http://localhost:8080';
app.use(router)
app.config.errorHandler = (err, instance, info) => {
  console.error('Global error:', err)
  // 可以在这里添加错误上报逻辑
}
app.use(ElementPlus)
app.mount('#app')
